package com.relytosoft.mizar.media.camera.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.relytosoft.dubhe.common.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.time.LocalDateTime;


@TableName("VID_CAMERA_CHANNELSTREAM")
@ApiModel("CameraChannelstream")
public class CameraChannelStream extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @ApiModelProperty(value = "主键ID", required = true)
    @TableId(value="ID", type= IdType.AUTO)
    @NotBlank(message = "主键ID不能为空")
    private Integer id;

    /**
     * 设备通道ID
     */
    @ApiModelProperty(value = "设备通道ID", required = true)
    @TableField("CHANNEL_ID")
    @NotBlank(message = "设备通道ID不能为空")
    private Integer channelId;

    /**
     * 码流类型
     */
    @ApiModelProperty(value = "码流类型")
    @TableField("STREAM_TYPE")
    private Integer streamType;

    /**
     * 分辨率
     */
    @ApiModelProperty(value = "分辨率")
    @TableField("RESOLUTION")
    private String resolution;

    /**
     * 码率类型
     */
    @ApiModelProperty(value = "码率类型")
    @TableField("BIT_RATE_TYPE")
    private Integer bitRateType;

    /**
     * 图片质量
     */
    @ApiModelProperty(value = "图片质量")
    @TableField("PIC_QUALITY")
    private Integer picQuality;

    /**
     * 创建人ID
     */
    @ApiModelProperty(value = "创建人ID", required = true)
    @TableField("CREATED_ID")
    @NotBlank(message = "创建人ID不能为空")
    private Integer createdId;

    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人", required = true)
    @TableField("CREATED_BY")
    @NotBlank(message = "创建人不能为空")
    private String createdBy;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间", required = true)
    @TableField("CREATED_TIME")
    @NotBlank(message = "创建时间不能为空")
    private LocalDateTime createdTime;

    /**
     * 更新人ID
     */
    @ApiModelProperty(value = "更新人ID", required = true)
    @TableField("UPDATED_ID")
    @NotBlank(message = "更新人ID不能为空")
    private Integer updatedId;

    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人", required = true)
    @TableField("UPDATED_BY")
    @NotBlank(message = "更新人不能为空")
    private String updatedBy;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间", required = true)
    @TableField("UPDATED_TIME")
    @NotBlank(message = "更新时间不能为空")
    private LocalDateTime updatedTime;

    /**
     * 获得主键ID
     */
    public Integer getId(){
        return this.id;
    }
    /**
     * 设置主键ID
     */
    public void setId(Integer id){
        this.id = id;
    }

    /**
     * 获得设备通道ID
     */
    public Integer getChannelId(){
        return this.channelId;
    }
    /**
     * 设置设备通道ID
     */
    public void setChannelId(Integer channelId){
        this.channelId = channelId;
    }

    /**
     * 获得码流类型
     */
    public Integer getStreamType(){
        return this.streamType;
    }
    /**
     * 设置码流类型
     */
    public void setStreamType(Integer streamType){
        this.streamType = streamType;
    }

    /**
     * 获得分辨率
     */
    public String getResolution(){
        return this.resolution;
    }
    /**
     * 设置分辨率
     */
    public void setResolution(String resolution){
        this.resolution = resolution;
    }

    /**
     * 获得码率类型
     */
    public Integer getBitRateType(){
        return this.bitRateType;
    }
    /**
     * 设置码率类型
     */
    public void setBitRateType(Integer bitRateType){
        this.bitRateType = bitRateType;
    }

    /**
     * 获得图片质量
     */
    public Integer getPicQuality(){
        return this.picQuality;
    }
    /**
     * 设置图片质量
     */
    public void setPicQuality(Integer picQuality){
        this.picQuality = picQuality;
    }

    /**
     * 获得创建人ID
     * @return
     */
    @Override
    public int getCreatedId(){
        return this.createdId;
    }
    /**
     * 设置创建人ID
     */
    public void setCreatedId(Integer createdId){
        this.createdId = createdId;
    }

    /**
     * 获得创建人
     */
    @Override
    public String getCreatedBy(){
        return this.createdBy;
    }
    /**
     * 设置创建人
     */
    @Override
    public void setCreatedBy(String createdBy){
        this.createdBy = createdBy;
    }

    /**
     * 获得创建时间
     */
    @Override
    public LocalDateTime getCreatedTime(){
        return this.createdTime;
    }
    /**
     * 设置创建时间
     */
    @Override
    public void setCreatedTime(LocalDateTime createdTime){
        this.createdTime = createdTime;
    }

    /**
     * 获得更新人ID
     * @return
     */
    @Override
    public int getUpdatedId(){
        return this.updatedId;
    }
    /**
     * 设置更新人ID
     */
    public void setUpdatedId(Integer updatedId){
        this.updatedId = updatedId;
    }

    /**
     * 获得更新人
     */
    @Override
    public String getUpdatedBy(){
        return this.updatedBy;
    }
    /**
     * 设置更新人
     */
    @Override
    public void setUpdatedBy(String updatedBy){
        this.updatedBy = updatedBy;
    }

    /**
     * 获得更新时间
     */
    @Override
    public LocalDateTime getUpdatedTime(){
        return this.updatedTime;
    }
    /**
     * 设置更新时间
     */
    @Override
    public void setUpdatedTime(LocalDateTime updatedTime){
        this.updatedTime = updatedTime;
    }

    @Override
    public String toString() {
        return "CameraChannelstream{id="+id+
                ",channelId="+channelId+
                ",streamType="+streamType+
                ",resolution="+resolution+
                ",bitRateType="+bitRateType+
                ",picQuality="+picQuality+
                ",createdId="+createdId+
                ",createdBy="+createdBy+
                ",createdTime="+createdTime+
                ",updatedId="+updatedId+
                ",updatedBy="+updatedBy+
                ",updatedTime="+updatedTime+
                "}";
    }
}